package com.qf.main.pharmacy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * @author chengqiang
 * @Create 2024-03-05-20:26
 * @Description:
 */
@ApiModel(description = "`order`")
@Data
@TableName(value = "`order`")
public class Order {
    // public static final String COL_SHOP_NAME = "shop_name";
    // public static final String COL_ORDER_MALL_ID = "order_mall_id";
    // public static final String COL_ORDER_MALL_NAME = "order_mall_name";
    // public static final String COL_ORDER_MALL_PRICE = "order_mall_price";
    // public static final String COL_ORDER_MALL_NUMBER = "order_mall_number";
    // public static final String COL_SHOP_NO = "shop_no";
    // public static final String COL_ORDER_IMG = "order_img";
    /**
     * 订单主键
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    @ApiModelProperty(value = "订单主键")
    private Integer orderId;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    @ApiModelProperty(value = "订单号")
    private Long orderNo;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 0正常1删除
     */
    @TableField(value = "del_status")
    @ApiModelProperty(value = "0正常1删除")
    private Integer delStatus;

    /**
     * 订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)
     */
    @TableField(value = "order_status")
    @ApiModelProperty(value = "订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)")
    private Integer orderStatus;

    /**
     * 商品总价格
     */
    @TableField(value = "total_price")
    @ApiModelProperty(value = "商品总价格")
    private BigDecimal totalPrice;

    /**
     * 收货地址id
     */
    @TableField(value = "order_address")
    @ApiModelProperty(value = "收货地址id")
    private Integer orderAddress;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USER_NAME = "user_name";

    public static final String COL_DEL_STATUS = "del_status";

    public static final String COL_ORDER_STATUS = "order_status";

    public static final String COL_TOTAL_PRICE = "total_price";

    public static final String COL_ORDER_ADDRESS = "order_address";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_REMARK = "remark";
}
